package proyecto.struts.bean;

import java.io.Serializable;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.JoinColumn;

@Entity
@Table (name="tb_area_has_tb_menu")
public class AreaMenu implements Serializable{
	
	@Id
	@Column(name="tb_area_id_area")
	private int idArea;
	@Id
	@ManyToOne
	@JoinColumn(name="tb_Menu_id_Menu")
	private Menu menu;
	
	@Column(name="ver")
	private String ver;
	
	
	public AreaMenu(){
		
	}
	
	public int getIdArea() {
		return idArea;
	}
	public void setIdArea(int idArea) {
		this.idArea = idArea;
	}
	public Menu getMenu() {
		return menu;
	}
	public void setMenu(Menu menu) {
		this.menu = menu;
	}
	public String getVer() {
		return ver;
	}
	public void setVer(String ver) {
		this.ver = ver;
	}
	
	
	
}
